package com.chen.blue.domain.dto.system.update;

import com.chen.blue.domain.dto.system.UserDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * Created By CLT On 2024/4/27.
 */
@SuppressWarnings("all")
@Getter
@Setter
@ToString(callSuper = true)
@ApiModel("用户修改参数")
public class UserDtoEdit implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "修改ID不能为空")
    @ApiModelProperty(value = "修改ID", required = true)
    private Long id;

    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    /**
     * 数据权限类型
     */
    @ApiModelProperty(value = "数据权限类型")
    private Integer dataScopeType;

    /**
     * 数据权限所选部门ID
     */
    @ApiModelProperty(value = "数据权限所选部门ID")
    private List<Long> deptIdArr;

    /**
     * 岗位ID
     */
    @ApiModelProperty(value = "岗位ID")
    private List<Long> postIdArr;

    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID")
    private List<Long> roleIds;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    private String mobile;

    /**
     * 用户邮箱
     */
    @ApiModelProperty(value = "用户邮箱")
    private String email;

    /**
     * 用户性别(0男1女)
     */
    @ApiModelProperty(value = "用户性别（0男1女）")
    private Integer sex;

    /**
     * 用户昵称
     */
    @NotBlank(message = "用户昵称不能为空")
    @ApiModelProperty(value = "用户昵称", required = true)
    private String nickname;

    /**
     * 帐号状态（1正常 0停用）
     */
    @NotNull(message = "账号状态不能为空")
    @ApiModelProperty(value = "账号状态(1正常;0停用)", required = true)
    private Boolean status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

}
